unit FMain;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, DB, ZAbstractRODataset, ZDataset, ZAbstractConnection,
  ZConnection, Grids, DBGrids, ZConnectionGroup, ZGroupedConnection;

type
  TForm1 = class(TForm)
    BBDD_Almacen: TZConnection;
    qPapelesAlmacen: TZReadOnlyQuery;
    Button1: TButton;
    Memo1: TMemo;
    DataSource1: TDataSource;
    DBGrid1: TDBGrid;
    ZConnection1: TZConnection;
    ZGroupedConnection1: TZGroupedConnection;
    ZConnectionGroup1: TZConnectionGroup;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  qPapelesAlmacen.Close;
  qPapelesAlmacen.SQL.Clear;
  qPapelesAlmacen.SQL.AddStrings( Memo1.Lines);
  qPapelesAlmacen.Open;
end;

end.
